{
    if(instance_exists(obj_Player)) {
        if(distance_to_point(obj_Player.x,obj_Player.y) <= 256 && !collision_line(x,y,obj_Player.x, obj_Player.y,Obj_wall,false,true)) {
            friction = 0;
            motion_add(point_direction(x,y,obj_Player.x,obj_Player.y),1);
            if(speed >= 4) speed =4;
            }   
    }
}
